package model.structure
{
	import mx.utils.ObjectUtil;

	public class StructureTraffic extends StructureBase
	{
		private var _category:String;
		private var _currtime:String;
		private var _rtpbps:Array;
		private var _sipbps:Array
		private var _time:Array
		private var _totalbps:Array
		private var _isParseComplete:Boolean = false;
		public function StructureTraffic()
		{
		}

		public function get isParseComplete():Boolean
		{
			return _isParseComplete;
		}

		public function set isParseComplete(value:Boolean):void
		{
			_isParseComplete = value;
		}

		public function get category():String
		{
			return _category;
		}

		public function set category(value:String):void
		{
			_category = value;
		}


		public function get currtime():String
		{
			return _currtime;
		}

		public function set currtime(value:String):void
		{
			_currtime = value;
		}

		public function get rtpbps():Array
		{
			return _rtpbps;
		}

		public function set rtpbps(value:Array):void
		{
			_rtpbps = value;
		}

		public function get sipbps():Array
		{
			return _sipbps;
		}

		public function set sipbps(value:Array):void
		{
			_sipbps = value;
		}

		public function get time():Array
		{
			return _time;
		}

		public function set time(value:Array):void
		{
			_time = value;
		}

		public function get totalbps():Array
		{
			return _totalbps;
		}

		public function set totalbps(value:Array):void
		{
			_totalbps = value;
		}

		public function parseData(obj:Object):void
		{
			isParseComplete = true;
			//String
			category	= obj.category;		
			type		= obj.type;                
			currtime	= obj.currtime;          
			//Array
			totalbps	= obj.totalbps;        
			sipbps		= obj.sipbps;            
			rtpbps		= obj.rtpbps;      
			//
			time		= obj.time;                
			
			trace(rtpbps.length);
			trace(sipbps.length);
			trace(time.length);
			trace(totalbps.length);

		}
	
	}
}